Skip to content

fix: Check proof block numbers re committed and proven tips#2275

Open
sergerad wants to merge 4 commits into
nextfrom
sergerad-proof-stream-check
Open

fix: Check proof block numbers re committed and proven tips#2275
sergerad wants to merge 4 commits into
nextfrom
sergerad-proof-stream-check

Conversation

@sergerad

@sergerad sergerad commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds block number checks to the ProofSync::sync() and State::apply_proof() functions to ensure that:

  1. Proofs are applied in ascending order; and
  2. Proofs are applied only for already-committed blocks.

Adds an assert to ProvenTipWriter::advance().

Adds a stub verify block proof fn and uses it in apply_proof().

Adds a check for already validated transactions in SubmitProvenTransaction handler.

Changelog

changelog = "none"
reason    = "Internal change only."

@sergerad

Copy link
Copy Markdown
Collaborator Author

@Mirko-von-Leipzig should we enable TLS for the streams by default and allow for a flag to disable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant